John
09/05/2025, 1:50 AM### Introduction
1. Before you speak, fetch organization data with `getOrganizationData`, passing `{{assistant.number}}` as `calledNumber`, so the request body will look like this:
{
"calledNumber": "{{assistant.number}}"
}
ChatGPT suggested using {{assistant.number}}, but apparently that's not a valid Vapi variable.
Is there another way that I can identify which phone number was called. Also, is there a place where we can see what Vapi variables are available? My fallback plan is to pass the callId, and then correlate that with a webhook event, but it doesn't seem to want to pass me {{call.id}} either.
I am able to pass {{caller.number}}, so at least some Vapi variables are working, but that doesn't help me much for this specific use case.
If I hardcode the number, the API call succeeds and returns data, so I know that everything about my configuration is correct, except for the passing of the called phone number.
Thanks for any info you can provide.Vapi Support Bot
09/05/2025, 1:52 AM{{customer.number}} to reference the phone number that was called. Update your tool call payload like this:
json
{
"calledNumber": "{{customer.number}}"
}
This will dynamically insert the destination number for each inbound call, as supported by Vapi's variable system ([documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables)).
Source:
- [Variables Vapi Documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables)John
09/05/2025, 1:58 AMVapi Support Bot
09/05/2025, 1:59 AM{{customer.number}} returns the caller's number in your inbound scenario. To help pinpoint the issue, could you share whether you are using a custom server endpoint (Server URL) to handle inbound calls, and if so, are you able to see the called (destination) number in the webhook payload sent by Vapi? This will help determine if the number is accessible at the server level, even if not directly as a dynamic variable in the assistant prompt.
Source:
- [Variables Vapi Documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables)John
09/05/2025, 3:02 PMJohn
09/05/2025, 7:12 PMChiranjeet Mishra
09/08/2025, 5:51 PMJohn
09/09/2025, 11:56 AM{{assistant.number}} in the request body, I receive a null value. So how can I communicate which phone number was called to my tool endpoint?
It would be helpful to know what are the Vapi variables that are available to my assistant to pass to tool calls.Chiranjeet Mishra
09/11/2025, 7:27 AMJohn
09/12/2025, 12:55 AM16a3f65a-069e-407e-b53d-276f51214765Chiranjeet Mishra
09/15/2025, 9:09 PM"phoneNumber": {
"id": "5xxx36-xxxx-45dd-xxxx-c349xxxx0058",
"name": "Dev Number",
"orgId": "d3xxxxb5-xxxx-47a6-xxxx-865b5xxxxc26",
"number": "+121xxxxx310",
"server": {}Danny Bhaskaran
10/28/2025, 6:36 AMJohn
10/29/2025, 12:45 AMHashrin
11/12/2025, 8:08 AMChiranjeet Mishra
11/14/2025, 6:16 AMHashrin
12/19/2025, 9:29 AM